import request from '@/utils/request'

export function loginAPI(data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}
// 获取用户信息
export function getUserInofAPI(params) {
  return request({
    url: '/sys/profile',
    method: 'POST',
    params
  })
}
// 用户基本信息
export const personalnformationAPI = (id) => {
  return request({
    url: `/sys/user/${id}`,
    method: 'GET'
  })
}
